package com.iweb.newa202104.controller;

import com.iweb.newa202104.service.CategoryService;
import com.iweb.newa202104.service.impl.CategoryServiceImpl;
import com.iweb.newa202104.vo.ResultVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:  <br>
 * date: 2021/5/11 20:29 <br>
 * author: ztz <br>
 * version: 1.0 <br>
 */
@Slf4j
@CrossOrigin
@RestController
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @RequestMapping("all")
    public ResultVO GetAll(){
        return categoryService.getAll();
    }

}
